package com.arpa.wms.service;


import com.arpa.wms.domain.dto.DifferenceDTO;
import com.arpa.wms.domain.entity.Difference;
import com.arpa.wms.domain.vo.DifferenceVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
/**
 * <p>
 * 盘点 服务类
 * </p>
 *
 * @author LEO
 * @since 2020-09-30
 */
public interface IDifferenceService extends IService<Difference> {

    /**
     * 保存
     * @param entity
     * @return
     */
    @Override
    boolean save(Difference entity);

    /**
     * 根据code更新实体
     * @param entity
     * @return
     */
    int updateByCode(Difference entity);

    /**
     * 查询列表
     * @param differenceDTO
     * @return
     */
    List<DifferenceVO> queryList(DifferenceDTO differenceDTO);

    List<String> queryByGoodscode(List<String> list);

    /**
     * 查询合计,包含总数
     * @param differenceDTO
     * @return
     */
    DifferenceVO queryListSum(DifferenceDTO differenceDTO);

    /**
     * 审核
     * @param difference
     * @return
     */
    int audit(Difference difference);
    DifferenceVO getOneByCode(String code);
}
